package com.teamit.service;


import java.util.List;

import com.teamit.dao.MessageDao;
import com.teamit.entity.Message;
import com.teamit.entity.MessageComment;
import com.teamit.util.db.Page;

public class MessageService {
	private MessageDao md=new MessageDao();
	public List<MessageComment> findByMessageId(){
		return md.findMessage();
	}
	public int findAllByCreatetime(String id,String employeeId,String time){
		return md.findAllByProject(id,employeeId,time);
	}
	public void save(Message message){
		md.save(message);
	}
	public Page<Message> findById(String projectId,int pageNum){
		return md.findById(projectId,pageNum);
	}
	public Message findMessage(String id){
		return md.findByIdMessge(id);
	}
}
